﻿using Windows.Service.Share;

namespace Windows.WorkFlow.Service
{
    public interface IFlowCategoryService
    {
        /// <summary>
        /// 获取所有流程类型基础资料
        /// </summary>
        /// <param name="request"></param>
        /// <returns></returns>
        Task<List<FlowCategoryResponse>> GetBasicFlowCategorys();
        /// <summary>
        /// 流程类型视图
        /// </summary>
        /// <param name="request"></param>
        /// <returns></returns>
        Task<PageResponse<FlowCategoryResponse>> Query(PageRequest<FlowCategoryRequest> request);
        /// <summary>
        /// 获取id的流程类型详情
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        Task<FlowCategoryResponse> Detail(int id);
        /// <summary>
        /// 流程类型保存
        /// </summary>
        /// <param name="request"></param>
        /// <returns></returns>
        Task Save(FlowCategorySaveRequest request);
        /// <summary>
        /// 流程类型删除
        /// </summary>
        /// <param name="request"></param>
        /// <returns></returns>
        Task Remove(IdsRequest request);
    }
    
}
